package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.product.entity.AttrGroupEntity;
import com.example.gulimall.product.vo.AttrGroupRelationVo;
import com.example.gulimall.product.vo.CategoryWithAttrResVo;
import com.example.gulimall.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lizhichao
 * @email sunlightcs@gmail.com
 * @date 2021-08-15 16:09:01
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPage(Map<String, Object> params, Long catId);


    void deleteRelation(List<AttrGroupRelationVo> vos);

    List<CategoryWithAttrResVo> getWithattr( Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithBySpuId(Long spuId, Long catalogId);
}

